﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="SamplingReport.aspx.cs"
    Inherits="PPAP.Web.Part.SamplingReport" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title></title>
</head>
<body style="font-family: Arial, Helvetica, sans-serif;" bgcolor="#F2F2F2">
    <form id="form1" runat="server">
    <div>
        <table width="100%" cellpadding="3" style="margin-top: 15px;">
            <tr>
                <td style="width: 15%; font-weight: bold; color: #2E8AC5;">
                    Sampling report no.
                </td>
                <td style="width: 35%;">
                    <asp:Label ID="lblSamplingReportNo" runat="server" Text="Label"></asp:Label>
                </td>
                <td style="width: 20%; font-weight: bold; color: #2E8AC5;">
                    Inspected by
                </td>
                <td style="width: 30%;">
                    &nbsp;
                </td>
            </tr>
            <tr>
                <td style="font-weight: bold; color: #2E8AC5;">
                    Status
                </td>
                <td>
                    Approved
                </td>
                <td style="font-weight: bold; color: #2E8AC5;">
                    Quality engineer
                </td>
                <td>
                    <asp:Label ID="lblQe" runat="server" Text="Label"></asp:Label>
                </td>
            </tr>
            <tr>
                <td style="font-weight: bold; color: #2E8AC5;">
                    Supplier
                </td>
                <td>
                    <asp:Label ID="lblSupplier" runat="server" Text="Label"></asp:Label>
                </td>
                <td style="font-weight: bold; color: #2E8AC5;">
                    Quality manager
                </td>
                <td>
                    <asp:Label ID="lblQM" runat="server" Text="Label"></asp:Label>
                </td>
            </tr>
            <tr>
                <td>
                </td>
                <td>
                </td>
                <td style="font-weight: bold; color: #2E8AC5;">
                    Quality VP
                </td>
                <td>
                    <asp:Label ID="lblQVP" runat="server" Text="Label"></asp:Label>
                </td>
            </tr>
            <tr>
                <td colspan="4" 
                    style="font-weight: bold; color: #2E8AC5; height: 35px; vertical-align: bottom;">
                    Decision text
                </td>
            </tr>
           <tr>
                <td colspan="4">
                    <asp:TextBox ID="lblDecision" runat="server" Height="85px" TextMode="MultiLine" Width="100%"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td colspan="4" 
                    style="font-weight: bold; color: #2E8AC5; height: 35px; vertical-align: bottom;">
                    Explanations
                </td>
            </tr>
            <tr>
                <td colspan="4">
                    <asp:TextBox ID="lblExplanations" runat="server" Height="85px" TextMode="MultiLine"
                        Width="100%"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td colspan="4" align="center">
                    <asp:Button ID="btnSubmit" runat="server" CssClass="button" OnClick="btnSubmit_Click"
                        OnClientClick="return confirm('Are you sure you want to submit?');" Text="Submit"
                        Visible="False" />
                    <input type="button" value="Print" class="button" onclick="print()" />
                </td>
            </tr>
        </table>
    </div>
    <script language="javascript" type="text/javascript">
        function print() {
            url = "SampleReportPrint.aspx?rid=<%=rid %>";
            url = "Report.aspx?rid=<%=rid %>";
            PopUpWindow(url, 230, 60, 880, 720); 
        }
    </script>
    </form>
</body>
</html>
